﻿<%@ Page Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="MatSubcontrata.aspx.cs" Inherits="DECOR.WebApp.MatSubcontrata" Title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMainMenu" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphTopMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphTopContent" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="cphMain" runat="server">
</asp:Content>

<asp:Content ID="Content7" ContentPlaceHolderID="cphMainLeft" runat="server">


<div style="height:10px"></div>

<div style="height:20px"></div>

Lista de Productos Añadidos:
<div style="height:10px"></div>
<asp:UpdatePanel ID="upMaterialesSelec" runat="server" UpdateMode="Conditional" >
    <ContentTemplate>
        <asp:DataList ID="dlMaterialesSelec" CssClass="tbl-detalle" runat="server" 
            CellPadding="4" Visible="true"
             ShowFooter="false" onitemcommand="dlMaterialesSelec_ItemCommand" 
            onitemdatabound="dlMaterialesSelec_ItemDataBound" >
            <HeaderTemplate>
                <tr>
                    <th colspan="2">
                        Materiales Seleccionados<br />
                        <asp:LinkButton ID="lnkCrearPedido" runat="server" Text="Continuar >>" ToolTip="Click para ir al doc de venta"  />
                    </th>
                </tr>
                <tr><td style="height:20px; vertical-align:middle;" colspan="11"><hr /></td></tr>
            </HeaderTemplate>
            <ItemTemplate>
            <tr>
                <td style="text-align:center;">
                    <asp:ImageButton ID="ImageButton1" ImageAlign="Middle" ImageUrl="~/img/del.png" runat="server" CommandName="DelItem" ToolTip='<%# Bind("Posicion") %>' />
                </td>
                <td>
                    <asp:HiddenField ID="hidMaterialId" runat="server" Value='<%# Bind("CodMaterial") %>' />
                    <asp:Label ID="lblNomMaterial" runat="server" Text='<%# Bind("DescMaterial") %>' ToolTip='<%# Bind("CodMaterial") %>' />
                </td>
            </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr><td style="height:20px" colspan="11"></td></tr>
                <tr><td colspan="7">No se han seleccionado items...</td></tr>
            </FooterTemplate>
        </asp:DataList>
    </ContentTemplate>
</asp:UpdatePanel>

</asp:Content>

<asp:Content ID="Content8" ContentPlaceHolderID="cphMainBody" runat="server">


   <div style="height:10px">                
   <asp:GridView ID="gvMatAdic" runat="server" CssClass="tbl-stock" Width="600px" AutoGenerateColumns="false" 
                        ShowFooter="true" onrowdatabound="gvMatAdic_RowDataBound" OnRowCommand="gvMatAdic_RowCommand">
                    <Columns>
                        <asp:ButtonField ButtonType="Image" HeaderText="Selec" CommandName="Selec" HeaderStyle-Width="25"
                                        HeaderStyle-HorizontalAlign="Center" 
                            ImageUrl="~/img/verify.png" >
                            <HeaderStyle HorizontalAlign="Center" Width="25px" />
                        </asp:ButtonField>                    
                        <asp:BoundField DataField="STLAL" HeaderText="LMatAl" NullDisplayText="-" ItemStyle-Width = "90px" />
                        <asp:BoundField DataField="Werks" HeaderText="Centro" NullDisplayText="-" ItemStyle-Width = "40px" />
                        <asp:BoundField DataField="Maktx" HeaderText="Material" NullDisplayText="-" ItemStyle-Width = "40px" />
                        <asp:BoundField DataField="Losvn" HeaderText="Tamaño lote de" NullDisplayText="-"  ItemStyle-Width = "40px" />
						<asp:BoundField DataField="Losbs" HeaderText="Tamaño Lote A" NullDisplayText="-"  ItemStyle-Width = "40px" />
						<asp:BoundField DataField="Stlan" HeaderText="StLMat" NullDisplayText="-"  ItemStyle-Width = "40px" />
                        
                   </Columns>
                    <FooterStyle BackColor="Wheat" />
                </asp:GridView></div>
                


</asp:Content>



<asp:Content ID="Content9" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>

